-- GENERATED SPELL FOR [Shadowhoof Summoner] --


function spell0_22859(pUnit, Event) --@Curse of Tongues,n/a--
pUnit:FullCastSpellOnTarget(13338,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22859', 15286, 1)
end

function spell1_22859(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22859', 3000, 1)
end

function Sorts_22859(pUnit, Event)
local choix_sorts_22859 = math.random(0, 1)
if choix_sorts_22859 == 0 then
pUnit:RegisterEvent('spell0_22859', 1, 1)
end
if choix_sorts_22859 == 1 then
pUnit:RegisterEvent('spell1_22859', 1, 1)
end
end

function mob22859_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22859', math.random(1500, 3000), 1)
end

function mob22859_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22859_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22859_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22859, 1, 'mob22859_Action')
RegisterUnitEvent(22859, 2, 'mob22859_Leave')
RegisterUnitEvent(22859, 3, 'mob22859_Kill')
RegisterUnitEvent(22859, 4, 'mob22859_Die')
